package com.yan.domain;

public class Penguin extends Pet{
    private String sex;

    public Penguin(String name, int health, int intimacy, String sex) {
        super(name, health, intimacy);
        this.sex = sex;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void print(){
        System.out.println("宠物"+getName()+"的自白:");
        System.out.println("我的名字叫"+getName()+",我的健康值是:"+getHealth()+"我和我主人的亲密度:"+getIntimacy()+"");
        System.out.println("我的性别是"+getSex());
    }
}
